#include <stdio.h>

int main() {
    int times; scanf("%d", &times);
    for (int i = 0; i < times; i++) {
        int baggage1, baggage2, baggage3, limitCarry, limitTake;
        scanf("%d%d%d%d%d", &baggage1, &baggage2, &baggage3, &limitCarry, &limitTake);
        if ((baggage1 <= limitTake && (baggage2 + baggage3) <= limitCarry) ||
        (baggage2 <= limitTake && (baggage1 + baggage3) <= limitCarry) ||
        (baggage3 <= limitTake && (baggage1 + baggage2) <= limitCarry)) {
            printf("YES\n");
        }
        else {
            printf("NO\n");
        }
    }
    return 0;
}